//
//  UIViewController+ZYM.m
//  GodTheNewsletter
//
//  Created by 张友民 on 16/10/11.
//  Copyright © 2016年 杭州骥腾. All rights reserved.
//

#import "UIViewController+ZYM.h"
#import <objc/runtime.h>

static char interactivePopGestureRecognizerEnableKey;

@implementation UIViewController (ZYM)

- (void)setInteractivePopGestureRecognizerEnable:(BOOL)enable{
    NSNumber *value = [NSNumber numberWithBool:enable];
    objc_setAssociatedObject(self, &interactivePopGestureRecognizerEnableKey, value, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
- (BOOL)getInteractivePopGestureRecognizerEnable{
    NSNumber *value = objc_getAssociatedObject(self, &interactivePopGestureRecognizerEnableKey);
    return [value boolValue];
}

@end
